const { execute } = require('./smartconfigjs')
const apSsid = 'wjyi_0049'  //你要连接的AP SSID也就是WiFi列表里的wifi名称
const apBssid = '08-97-58-20-39-ea' //你要连接的AP的MAC地址，注意不是你本机的
const apPwd = '18610717733'  //你要连接的AP的密码
const ip = '192.168.0.153'   //AP分配给你本机的

/* const res = await execute(apSsid, apBssid, apPwd, ip, false);
console.log('res: ' + JSON.stringify(res, null, 4)) */
execute(apSsid, apBssid, apPwd, ip, false).then(res => console.log('res: ' + JSON.stringify(res, null, 4)))
